package org.budo.support.java.awt.util;

import java.awt.AWTException;
import java.awt.SystemTray;
import java.awt.TrayIcon;

/**
 * @author limingwei
 */
public class SystemTrayUtil {
    public static void addTrayIcon(TrayIcon trayIcon) {
        try {
            SystemTray.getSystemTray().add(trayIcon);
        } catch (AWTException e) {
            throw new RuntimeException(e);
        }
    }
}